package com.example.order.mapper;

import org.apache.ibatis.annotations.Param;
import pojo.Order;

import java.math.BigDecimal;
import java.util.List;

public interface OrderMapper {
    int deleteByPrimaryKey(String orderId);

    int insert(Order record);

    int insertSelective(Order record);

    Order selectByPrimaryKey(String orderId);

    int updateByPrimaryKeySelective(Order record);

    int updateByPrimaryKey(Order record);

    Integer updateByOrderNumber(@Param("orderNumber") String orderNumber);

    List<Order> getOrders(@Param("userId")String userId);

    Order pay(@Param("orderNo") String orderNo);

    Integer updateStatusByOrderNo(@Param("orderNo") String orderNo);

    Order getOrderByOrderNumber(@Param("orderNumber") String orderNumber);

    Order getOrderByOrderNo(@Param("orderNumber") String orderNumber);

    Integer updateOrder(@Param("money") BigDecimal money,@Param("endTime") String endTime,@Param("orderNumber") String orderNumber);

    List<Order> queryOrders(Order order);

    Integer updateParkingStatus(@Param("parkingId") String parkingId);

    List<Order> getOrder();
}